package cn.tedu.carehome.foundation.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author 袁田
 */

@Data
public class EventAddNewDTO implements Serializable {

    /**
     * 发生事故的老人的id
     */
    @ApiModelProperty(value = "关联的老人id", required = true, example = "1")
    @NotNull(message = "添加事件失败，必须提交关联老人！")
    private Long olderId;
    /**
     * 事件名字
     */
    @ApiModelProperty(value = "事件名称", required = true, example = "袁田摔伤了")
    @NotNull(message = "添加事件失败，必须提交事故的名称！")
    private String name;
    /**
     * 事故详细描述
     */
    @ApiModelProperty(value = "事件详细描述", required = true, example = "袁田早上吃早饭后下二楼楼梯时不慎摔伤,已经送往医院了")
    @NotNull(message = "添加事件失败，必须提交事故详细描述！")
    private String info;

    //  1:小型事故 2:一般事故 3:重大事故
    @ApiModelProperty(value = "事件等级", required = true, example = "1")
    @NotNull(message = "添加事件失败，必须提交事故详细描述！")
    private Integer matterLevel;



}
